package com.ruoyi.shanghu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.shanghu.domain.SysUser;
import com.ruoyi.shanghu.mapper.SysUserMapper;
import com.ruoyi.shanghu.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 刘杰
* @description 针对表【sys_user(用户信息表)】的数据库操作Service实现
* @createDate 2023-05-08 19:02:58
*/
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser>
    implements SysUserService{
    @Autowired
    SysUserMapper sysUserMapper;
    @Override
    public List<SysUser> selectSysUserList(SysUser sysUser) {

        return sysUserMapper.list(sysUser);
    }

    @Override
    public int updateSysUser(SysUser sysUser) {
     return sysUserMapper.updateStatus(sysUser);
    }

}




